<template>
  <div class="list">
    <div class="field-item">
      <span>姓名：</span>
      <el-input disabled v-model="studentName" placeholder="姓名"></el-input>
    </div>
    <div class="field-item">
      <span>性别：</span>
      <el-input disabled v-model="sex" placeholder="性别"></el-input>
    </div>
    <div class="field-item">
      <span>校号：</span>
      <el-input disabled v-model="studentNum" placeholder="校号"></el-input>
    </div>
    <div class="field-item">
      <span>院系：</span>
      <el-input disabled v-model="department" placeholder="院系"></el-input>
    </div>
    <div class="field-item">
      <span>班级：</span>
      <el-input disabled v-model="classes" placeholder="班级"></el-input>
    </div>

    <div class="field-item">
      <span>手机号：</span>
      <el-input disabled v-model="studentPhone" placeholder="手机号"></el-input>
    </div>
    <div class="field-item">
      <span>宿舍号：</span>
      <el-input disabled v-model="dormitoryNum" placeholder="宿舍号"></el-input>
    </div>
    <div class="field-item">
      <span>余额：</span>
      <el-input disabled v-model="balance" placeholder="余额"></el-input>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    studentName: {
      type: String,
      value: ''
    },
    sex: {
      type: String,
      value: ''
    },
    studentNum: {
      type: String,
      value: ''
    },
    department: {
      type: String,
      value: ''
    },
    classes: {
      type: String,
      value: ''
    },
    studentPhone: {
      type: String,
      value: ''
    },
    dormitoryNum: {
      type: String,
      value: ''
    },
    balance: {
      type: String,
      value: ''
    }
  },
  data() {
    return {}
  }
}
</script>

<style lang="less" scoped>
.list {
  .field-item {
    padding: 10px;
    display: flex;
    align-items: center;
    span {
      width: 80px;
      font-size: 14px;
    }
    .el-input.is-disabled /deep/ .el-input__inner {
      color: #606266;
    }
  }
}
</style>
